﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject;
using sdm.exam.domain.Abstract;
using sdm.exam.domain.DataContext;
using sdm.exam.domain;

namespace sdm.exam.domain
{
    public class Ninjector
    {
        public static IKernel Kernel = new StandardKernel();
        /// <summary>
        /// Setup a default binding to the standard database connection.
        /// </summary>
        public static void DefaultSetup()
        {
            Kernel.Bind<ISdmExamRepository>().ToConstant(
                new DataContext.DataContext(ConnectionStrings.StandardConnection));
        }
    }
}
